package saver

import (
	"fmt"
	"my-crawler/database/mysql"
)

type RI struct {
	ID     int
	ROW_GU string
}

func InsertRowGu(CERTNUM, ROW_GU string) {
	client := mysql.Db
	res, err := client.Exec("update  mohurd  set ROW_GU=?  where `施工许可证电子证照编号`=?",
		ROW_GU, CERTNUM)
	if err != nil {
		fmt.Println("exec failed, ", err)
		return
	}
	row, err := res.RowsAffected()
	if err != nil {
		fmt.Println("rows failed, ", err)
	}
	fmt.Println("update succ:", row)

}
